package com.example.demo.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.model.po.WorkOrder;
import com.example.demo.model.vo.WorkOrderVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface WorkOrderService extends IService<WorkOrder> {

    boolean save(WorkOrder workOrder);

    boolean removeById(Long id);

    boolean updateById(WorkOrder workOrder);

    Page<WorkOrder> page(Page<WorkOrder> page, QueryWrapper<WorkOrder> queryWrapper);

    boolean updateByFenpai(WorkOrder workOrder);


    List<WorkOrderVo> getDepartmentStatsForJuly();

    List<WorkOrderVo> getOrderTypeStatsForJuly();
}
